import request from '@/utils/request'

const tbSpecApi={
    selectAll(){
        return request({
            url:'/tbSpec/selectAllTbSpec.do',
            method:'get'
        })
    },
    //分页查询
    //TbSpecification
    selectAllTbSpecByPage(params){
        return request({
            url:'/tbSpec/selectAllTbSpecByPage.do',
            method:'get',
            params:params
        })
    },
    //条件查询
    selectAllTbSpecByCond(page,pageSize,params){
        return request({
            url:'/tbSpec/selectByCondition.do',
            method:'post',
            params:{
                page:page,
                pageSize:pageSize
            },
            data:params
        })
    },
    //添加规格名称信息
    addTbSpec(params){
        return request({
            url:'/tbSpec/addTbSpec.do',
            method:'post',
            data:params
        })
    },
    //添加规格选项信息
    addTbSpecOp(data){
        return request({
            url:'/tbSpec/addTbSpecOp.do',
            method:'post',
            data:data
        })
    },
    //删除信息
    deleteTbSpec(data){
        return request({
            url:'/tbSpec/deleteTbSpec.do',
            method:'post',
            data
        })
    },
}
export default tbSpecApi;